package com.thread.practice;

public class ExtendThread {

	public static void main(String[] args) {
		new ChangeNewThread();
		for (int i = 5; i > 0; i--) {
			System.out.println("主线程" + i);
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				System.out.println("主线程休眠时其他线程试图中断");
			}
		}
		System.out.println("主线程关闭");
	}

}
